<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script src="js/jquery-1.11.0.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/av-min-2.1.2.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			window.onload = function() {
				var APP_ID = 'WGpViiVcguLhSabE0AHEbHX4-gzGzoHsz';
				var APP_KEY = 'LWjXkUknhTPjaYnyXs6CVgrC';
				AV.init({
					appId: APP_ID,
					appKey: APP_KEY
				}); //云端初始化
				updateGood1();
				//时间倒计时函数

			}

			function updateGood1() {
				var query = new AV.Query('Cart');
				query.find().then(function(products) {
					// 查询到商品后，在前端展示到相应的位置中。
					console.log(products)
				}).catch(function(error) {
					console.log(JSON.stringify(error));
				});
			}
		</script>
	</body>

</html>